|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | BAUD_RATE 9600 |
Functions | |
| void | main (void) |
| void | USCI_A0_ISR (void) |
Variables | |
| uint8_t | receivedData = 0x00 |
| uint8_t | transmitData = 0x00 |
| uint8_t | check = 0 |
| #define BAUD_RATE 9600 |
This example shows how to configure the UART module as the loopback to verify that received data is sent data.
MSP430F5438A
-----------------
RST -| P3.4/UCA0TXD|----|
| | |
| | |
| P3.5/UCA0RXD|----|
| |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 64 of file usci_a_uart_ex1_loopbackAdvance.c.
| void main | ( | void | ) |
Definition at line 80 of file usci_a_uart_ex1_loopbackAdvance.c.
References check, param, STATUS_FAIL, and transmitData.
| void USCI_A0_ISR | ( | void | ) |
Definition at line 141 of file usci_a_uart_ex1_loopbackAdvance.c.
References check, receivedData, and transmitData.
| uint8_t check = 0 |
Definition at line 78 of file usci_a_uart_ex1_loopbackAdvance.c.
Referenced by main(), and USCI_A0_ISR().
| uint8_t receivedData = 0x00 |
Definition at line 70 of file usci_a_uart_ex1_loopbackAdvance.c.
Referenced by USCI_A0_ISR().
| uint8_t transmitData = 0x00 |
Definition at line 76 of file usci_a_uart_ex1_loopbackAdvance.c.
Referenced by main(), and USCI_A0_ISR().